package day4;

public class Exam {
    public static void main(String[] args) {
        String strs = "fdaskljfkjdsakjfdaskj;fd;ljkas8997fd8s7870fdsjaaf";
        int[] asciis = new int[128];
        for (int i = 0; i < strs.length(); i++) {
            char index = strs.charAt(i);
            asciis[index] = asciis[index] + 1;
        }
        for (int i = 0; i < asciis.length; i++) {
            if (asciis[i] > 0) {
                char c = (char) i;
                System.out.println(c + "出现了" + asciis[c]);
            }
        }
    }
}
